package com.sync.utils.project.demo.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.sync.utils.project.demo.pojo.UserInfo;
import com.sync.utils.project.demo.pojo.UserDto;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

@Repository
public interface UserMapper extends BaseMapper<UserDto> {

    /**
     * 通过账号获取用户
     */
    UserInfo getByAccount(@Param("account") String account);

    Integer getByAccountCounts(@Param("account") String account);
}